<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>日期对象</title>
	<script type="text/javascript">
		var dateObj = new Date("2016-10-1 0:0:0");

		var guoqing = dateObj.getTime()/1000;

		var nowObj = new Date();

		var now = nowObj.getTime()/1000;

		var diffTime = guoqing-now;


		alert(diffTime%86400);



		// date('Y-m-d H:m:s');

		// alert(dateObj);



	</script>
</head>
<body>
	
</body>
</html>